package com.yunxi.service.localService.impl.otd;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.otd.OtdWeekPlanSingleMapper;
import com.yunxi.model.otd.OtdWeekPlanSingle;
import com.yunxi.otd.pojo.OtdWeekPlanSingleVO;
import com.yunxi.service.localService.otd.OtdWeekPlanSingleService;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 生产计划 服务实现类
 * </p>
 *
 * @author XUQI
 * @since 2019-05-13
 */
@Service
public class OtdWeekPlanSingleServiceImpl extends ServiceImplPlus<OtdWeekPlanSingleMapper, OtdWeekPlanSingle> implements
    OtdWeekPlanSingleService {

    @Override
    public Integer findPlanCountByDetailCode(String detailCode) {
        return baseMapper.selectPlanCountByDetailCode(detailCode);
    }

    @Override
    public void retainSingleByNum(Integer num,String detailCode) {
        baseMapper.retainSingleByNum(num,detailCode);
    }

    @Override
    public void removePlanByDetailCode(String detailCode) {
        baseMapper.deletePlanByDetailCode(detailCode);
    }

    @Override
    public List<OtdWeekPlanSingle> findListByDetailCode(String detailCode) {
        return baseMapper.selectListByDetailCode(detailCode);
    }

    @Override
    public void removeSingleByWeekPlanCode(String weekPlanCode) {
        baseMapper.deleteSingleByWeekPlanCode(weekPlanCode);
    }

    @Override
    public List<OtdWeekPlanSingleVO> findPlanListByCode(String weekPlanCode) {
        return baseMapper.selectPlanListByCode(weekPlanCode);
    }
}
